﻿
/*
NAILSUPERSTORE ® COMPANY
 
[HISTORY]
Created By  	: NGUYEN VAN TY
Created Date	: 23/02/2010
Modified By     :
Modified Date   :
Note            :

*/

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busVideoCategory
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------
  
        public const string CategoryID = "CategoryID";
        public const string VideoID = "VideoID";       
        public const string SORTORDER = "SortOrder";
        public const string ISACTIVE = "IsActive";       
        public const string ORDERBY = "OrderBy";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";     
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";


        private daoVideoCategory _objDao;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busVideoCategory()
        {
            _objDao = new daoVideoCategory();
        }
        public bool DeleteByVideo(int videoID)
        {
          return  _objDao.DeleteByVideo(videoID);
        }
        public bool Insert(VideoCategory objData)
        {
            return _objDao.Insert(objData);
        }
        public VideoCategoryCollection GetByVideoId(int videoId)
        {
            return _objDao.GetByVideoId(videoId);
        }
        public VideoCategoryCollection GetByCategoryId(int categoryId)
        {
            return _objDao.GetByCategoryId(categoryId);
        }
      
    }

}